<template>
  <van-loading v-if="loading" :type="type" class="text-center">{{loadingText}}</van-loading>
  <slot v-if="!loading"></slot>
</template>
<script setup>
import { useAttrs, useSlots } from "vue";
const attr = useAttrs();
const slot = useSlots();
const prop = defineProps({
  loading: {
    type: Boolean,
    default: true,
  },
  type: {
    type: String,
  },
  loadingText: {
    type: String,
  },
  color:{
    type:String
  }
});
</script>
<style scoped lang="scss">
</style>